package com.example.yzj16478026;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.Nullable;

public class UserActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.user_activity);
        Intent intent =getIntent();
        String username=intent.getStringExtra("usa");
        TextView textView=findViewById(R.id.user);
        textView.setText("用户"+username+"的个人中心");
        Toast toast=Toast.makeText(UserActivity.this,"用户"+username+"登录成功", Toast.LENGTH_SHORT);
        toast.show();

    }
}
